/*
3
1.8

 */
#include <iostream>
using namespace std;
#if 0
int Min(int a, int b){
	return a<b?a:b;
}
float Min(float a, float b){
	return a<b?a:b;
}
double Min(double a, double b){
	return a<b?a:b;
}
char Min(char a, char b){
	return a<b?a:b;
}
#endif
template <typename T>
T Min(T a, T b){
	return a<b?a:b;
}
int main(void){
	int m=9, n=3;
	double d1=1.8, d2=3.4;
	cout << Min(m,n) << endl;
	cout << Min(d1, d2) << endl;
	return 0;
}
